package io.gitee.twoke.generator.engine.impl.persistence.entity;

import java.util.HashMap;

public class TemplateGroupEntityImpl
    extends AbstractEntity implements TemplateGroupEntity {

    private String name;
    private String description;

    @Override
    public Object getPersistentState() {
        return new HashMap<String, Object>(){{
            put("id", id);
            put("name", name);
            put("description", description);
        }};
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void setDescription(String description) {
        this.description = description;
    }


    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDescription() {
        return description;
    }



}
